﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YiLe.Model.Domain
{
    public class Permission
    {
        public Permission() { }
        public virtual int PermissionID { get; set; }
        public virtual string PermissionName { get; set; }
        public virtual string PermissionType { get; set; }
        public virtual int MenuID { get; set; }
        //多对多关系：一个Permission对应多个Role
        public virtual IList<Role> Roles { get; set; }
        //一对一关系：一个Permission对应一个Menu
        //public virtual Menu Menu { get; set; }
    }
}
